unit FormPrincipalUnit;

interface

uses
  Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Vcl.Buttons, Vcl.ExtCtrls,
  Vcl.Imaging.pngimage;

type
  TFormPrincipal = class(TForm)
    Panel1: TPanel;
    BitBtn1: TBitBtn;
    Image1: TImage;
    BitBtn2: TBitBtn;
    BitBtn3: TBitBtn;
    BitBtn4: TBitBtn;
    procedure BitBtn1Click(Sender: TObject);
    procedure BitBtn2Click(Sender: TObject);
    procedure BitBtn3Click(Sender: TObject);
    procedure BitBtn4Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FormPrincipal: TFormPrincipal;

implementation

{$R *.dfm}

uses FormClienteUnit, FormCRUDUnit, FormCRUDFuncUnit, FormCRUDServicoUnit,
  FormAgendamentoUnit;

procedure TFormPrincipal.BitBtn1Click(Sender: TObject);
var
  formCrud : TFormCRUD;
begin
  formCrud := TFormCRUD.Create(self);
  with formCrud do
  begin
    try
      ShowModal;
    finally
      Free;
    end;
  end;
end;

procedure TFormPrincipal.BitBtn2Click(Sender: TObject);
var
  formCrud : TFormCRUDFunc;
begin
  formCrud := TFormCRUDFunc.Create(self);
  with formCrud do
  begin
    try
      ShowModal;
    finally
      Free;
    end;
  end;
end;

procedure TFormPrincipal.BitBtn3Click(Sender: TObject);
var
  formCrud : TFormCRUDServico;
begin
  formCrud := TFormCRUDServico.Create(self);
  with formCrud do
  begin
    try
      ShowModal;
    finally
      Free;
    end;
  end;
end;

procedure TFormPrincipal.BitBtn4Click(Sender: TObject);
var
  formAgendamento : TFormAgendamento;
begin
  formAgendamento := TFormAgendamento.Create(self);
  with formAgendamento do
  begin
    try
      ShowModal;
    finally
      Free;
    end;
  end;
end;

end.
